package com.snda.storage.service.sdk;

import static com.google.common.base.Preconditions.checkNotNull;

import javax.annotation.concurrent.Immutable;

/**
 * 
 * @author wangzijian
 * 
 */
@Immutable
public final class Credentials extends ValueObject {

	private final String accessKey;
	private final String secretKey;

	public Credentials(String accessKey, String secretKey) {
		this.accessKey = checkNotNull(accessKey, "accessKey");
		this.secretKey = checkNotNull(secretKey, "secretKey");
	}

	public String getAccessKey() {
		return accessKey;
	}

	public String getSecretKey() {
		return secretKey;
	}

}
